﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ARchGL.Platform.Electrocar.Core.Mappings
{
    public class LoggingsMapping : IEntityTypeConfiguration<Loggings>
    {
        public void Configure(EntityTypeBuilder<Loggings> builder)
        {
            builder.Property(p => p.Name).HasMaxLength(50);
            builder.Property(p => p.Number).HasMaxLength(100);
            builder.Property(p => p.IPAddress).HasMaxLength(30);
            builder.Property(p => p.UserAgent).HasMaxLength(100);
        }
    }
}
